package c.e.b.h.e.m.x;

import android.util.JsonReader;
import c.e.b.h.e.m.x.h.a;
import java.util.Objects;

/* compiled from: CrashlyticsReportJsonTransform */
public final /* synthetic */ class c implements a {
    public static final c a = new c();

    public Object a(JsonReader jsonReader) {
        c.e.b.i.a aVar = h.a;
        jsonReader.beginObject();
        String str = null;
        String str2 = str;
        while (jsonReader.hasNext()) {
            String nextName = jsonReader.nextName();
            nextName.hashCode();
            if (nextName.equals("key")) {
                str = jsonReader.nextString();
                Objects.requireNonNull(str, "Null key");
            } else if (nextName.equals("value")) {
                str2 = jsonReader.nextString();
                Objects.requireNonNull(str2, "Null value");
            } else {
                jsonReader.skipValue();
            }
        }
        jsonReader.endObject();
        String str3 = str == null ? " key" : "";
        if (str2 == null) {
            str3 = c.b.a.a.a.D(str3, " value");
        }
        if (str3.isEmpty()) {
            return new c.e.b.h.e.m.c(str, str2, null);
        }
        throw new IllegalStateException(c.b.a.a.a.D("Missing required properties:", str3));
    }
}
